package com.zhiche.lisa.bms.dao.model.driver;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 商品车型油箱容积, cv = commercial vehicle
 * </p>
 *
 * @author zhaoguixin
 * @since 2018-08-30
 */
@TableName("sc_base_cv_tankvolume")
public class BaseCvTankvolume extends Model<BaseCvTankvolume> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;

	@TableField("cv_type_id")
	private String cvTypeId;

    /**
     * 商品车系ID
     */
    @TableField("cv_class_id")
    private Integer cvClassId;
    /**
     * 商品车品牌ID
     */
    @TableField("cv_brand_id")
    private Integer cvBrandId;
    /**
     * 油箱容积
     */
    @TableField("tank_volume")
    private BigDecimal tankVolume;
    /**
     * 记录创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 记录更新时间
     */
    @TableField("gmt_update")
    private Date gmtUpdate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCvTypeId() {
        return cvTypeId;
    }

    public void setCvTypeId(String cvTypeId) {
        this.cvTypeId = cvTypeId;
    }

    public Integer getCvClassId() {
        return cvClassId;
    }

    public void setCvClassId(Integer cvClassId) {
        this.cvClassId = cvClassId;
    }

    public Integer getCvBrandId() {
        return cvBrandId;
    }

    public void setCvBrandId(Integer cvBrandId) {
        this.cvBrandId = cvBrandId;
    }

    public BigDecimal getTankVolume() {
        return tankVolume;
    }

    public void setTankVolume(BigDecimal tankVolume) {
        this.tankVolume = tankVolume;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtUpdate() {
        return gmtUpdate;
    }

    public void setGmtUpdate(Date gmtUpdate) {
        this.gmtUpdate = gmtUpdate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BaseCvTankvolume{" +
                ", id=" + id +
                ", cvTypeId=" + cvTypeId +
                ", cvClassId=" + cvClassId +
                ", cvBrandId=" + cvBrandId +
                ", tankVolume=" + tankVolume +
                ", gmtCreate=" + gmtCreate +
                ", gmtUpdate=" + gmtUpdate +
                "}";
    }
}
